// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Form.java

package include.validator;

import java.util.*;

// Referenced classes of package include.validator:
//			Field

public class Form
{

	private String name;
	private List fields;
	private HashMap hfields;

	public Form()
	{
		fields = new ArrayList();
		hfields = new HashMap();
	}

	public String getName()
	{
		return name;
	}

	public void setName(String argName)
	{
		name = argName;
	}

	public List getFields()
	{
		return Collections.unmodifiableList(fields);
	}

	public void addField(Field f)
	{
		fields.add(f);
		hfields.put(f.getName(), f);
	}

	public boolean containsField(String fieldName)
	{
		return hfields.containsKey(fieldName);
	}

	public Field getField(String fieldName)
	{
		return (Field)hfields.get(fieldName);
	}
}
